﻿<%@ Page Language="C#" MasterPageFile="~/APP/MasterPage_appCom.master" AutoEventWireup="true" ValidateRequest = "false"
    CodeFile="frmA_TraineeList.aspx.cs" Inherits="APP_frmA_TraineeList" Title="技能実習生一覧"%>

<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
 技能実習生一覧
 </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

  <script type="text/javascript" src="../js/jquery.min.js"></script>
 <script src="../js/jquery-1.4.1.min.js" type="text/javascript"></script>
 <script src="../js/jquery.jqpopup.min.js" type="text/javascript"></script>
 <script src="../js/jquery.bgiframe.min.js" type="text/javascript"></script>
 <script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
 <script src="../js/jqDnR.min.js" type="text/javascript"></script>
 <script src="../js/jquery.maskedinput.js" type="text/javascript"></script>
<script type="text/javascript" src="../Js/jquery.alphanumeric.pack.js"></script>
<script src="../js/Validation.js" type="text/javascript"></script>
<script src="../js/jquery.blockUI.js" type="text/javascript"></script>

    
    <script language="JavaScript" type="text/javascript">
         $(document).ready(function() {
            registerControlToValidation("validation");
            Disable();
            registerEnter();
            //registerControlToValidation("validation");
            
         
         });  
         function registerEnter()
         {
            if(document.getElementById("<%= DropDownList1.ClientID %>") != null)
            {
                registerEnterEvent("enter", "<%= btn_検索.ClientID %>", 3);
            }
            else
            {
                registerEnterEvent("enter", "<%= btn_検索.ClientID %>", 2);
            }
            
         }
         
         
         function Disable()
         {
//            disableControlOnLoadUpdatePanel("<%= UpdatePanel1.ClientID %>", "<%= btn_検索.ClientID %>");
         }
    </script>
    
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="true">
         
        <ContentTemplate>
            <div class="maindiv1">
                <div class="div_comment">
                    <div class="Header3" style="padding-left: 10px">
                        <span>※検索条件を指定してください。</span>
                    </div>
                    <br />
                    <div style="margin-left: 50px" class="detail-admin-row">
                        
                        <asp:DropDownList ID="DropDownList1" runat="server" Width="191px" CssClass ="enter validation" AppendDataBoundItems="true">
                            <asp:ListItem Value="-1" Selected="true">-企業選択してください。-</asp:ListItem>
                        </asp:DropDownList>
                        
                         <asp:RequiredFieldValidator runat="server" ID="validateddl_DropDownList1"
                            ControlToValidate="DropDownList1"
                            Display="None" InitialValue ="-1"
                            SetFocusOnError="false"
                            ErrorMessage="" />
            
                         <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender30"
                            TargetControlID="validateddl_DropDownList1" HighlightCssClass = "invalid" Width="260px"
                            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
                       <%-- <br />
                        <br/>--%>
                        
                        <asp:DropDownList ID="ddl_検索" runat="server" Width="191px" CssClass ="enter validation">
                            <asp:ListItem Value="-1" Selected="true">-選択してください-</asp:ListItem>
                            <asp:ListItem Value="0">在籍</asp:ListItem>
                            <asp:ListItem Value="1">帰国</asp:ListItem>
                            <asp:ListItem Value="2">すべて</asp:ListItem>
                        </asp:DropDownList>
                        
                        <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1"
                            ControlToValidate="ddl_検索"
                            Display="None" InitialValue ="-1"
                            SetFocusOnError="false"
                            ErrorMessage="" />
            
                         <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender1"
                            TargetControlID="RequiredFieldValidator1" HighlightCssClass = "invalid" Width="260px"
                            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
                        
                        <br />
                        <br />
                        <asp:TextBox ID="TextBox1" runat="server" Width="184px" MaxLength="500" Font-Names="MS UI Gothic" Font-Size="14px" CssClass ="enter"></asp:TextBox>
                        <span class="Header3" style="padding-left: 0px;">※氏名・性別・国籍・などキーワードを自由に入力可能。</span>
                        <br />
                        <br />
                    </div>
                    <div style="margin-left: 145px" class="detail-admin-row">
                        <asp:Button id="btn_検索" runat="server" Text="検索" CssClass="btn" OnClick="btn_検索_Click" OnClientClick="javascript:focusToControlErr();" ></asp:Button>
                        <br />
                        <br />
                        <div class="Header3" style="padding-left: 0px">
                            <span>例：”2”を入力した場合 → データの中に”2”が存在する実習生を表示する。
                                <br />
                                ”＊A”を入力した場合 → データの中で最後に”A”がある実習生を表示する。 </span>
                        </div>
                    </div>
                </div>
                <div class="div_grv">
                    <div class="Header4">
                    </div>
                    <%--<div>
                        &nbsp;</div>--%>
                    <%--<div class="detail-admin-row" style="margin: 0px 50px 50px 50px">--%>
                        <div class="Header3" style="padding-left: 0px">
                           <asp:label id ="label1" runat="server" text=""></asp:label> 
                        </div>
                        <br />
                       <%-- <br />--%>
                       <div class="div_grv1" style="width:770px;overflow-y : hidden;overflow:auto;">
                        <asp:GridView ID="grv" runat="server" AutoGenerateColumns="False" CssClass="mGrid"
                            ForeColor="#555555" GridLines="Vertical" AllowPaging="true" PageSize="10" Height="40px" PagerStyle-CssClass="pgr" AlternatingRowStyle-CssClass="alt"
                            Width="98%" OnPageIndexChanging="grv_PageIndexChanging" >
                            <Columns>
                                <asp:TemplateField HeaderText="氏名">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lk1" runat="server" CausesValidation="false" OnCommand="lk1_Click" CommandArgument='<%#Eval("社員ID") %>'><%#Eval("氏名") %></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="性別">
                                     <ItemStyle HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <%#ConvertString(Eval("性別").ToString())%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="生年月日">
                                    <ItemTemplate>
                                        <%#ConvertDate(Eval("生年月日").ToString())%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="国籍">
                                    <ItemStyle HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <%#Eval("国籍名")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="入国年月日">
                                    <ItemTemplate>
                                        <%#ConvertDate(Eval("入国年月日").ToString())%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="2号移行年月日">
                                    <ItemTemplate>
                                        <%#ConvertDate(Eval("号移行年月日").ToString())%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="送出し機関名">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lk2" runat="server" CausesValidation="false" OnCommand="lk2_送出し機関名_Click" CommandArgument='<%#Eval("企業ID") %>'> <%#Eval("企業名")%></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <PagerSettings FirstPageText="最初" Mode="NumericFirstLast" PageButtonCount="5" LastPageText="最後" />
                        </asp:GridView>
                        </div> 
                        
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                            CssClass="mGrid" PagerStyle-CssClass="pgr" AlternatingRowStyle-CssClass="alt"
                            ForeColor="#555555" GridLines="Vertical" 
                            Height="40px" Width="98%">
                        <Columns>
                            <asp:HyperLinkField HeaderText="氏名" />
                            <asp:BoundField HeaderText="性別" />
                            <asp:BoundField HeaderText="生年月日" />
                            <asp:BoundField HeaderText="国籍" />
                            <asp:BoundField HeaderText="入国年月日" />
                            <asp:BoundField HeaderText="2号移行年月日" />
                            <asp:BoundField HeaderText="送出し機関名" />

                       </Columns>
                        <SelectedRowStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" />
                        </asp:GridView>
                        
                    <%--</div>--%>
                </div>
                <div class="detail-admin-row">
                    <div class="btn_back">
                    </div>
                    <div class="btn_next">
                    </div>
                    <div>
                        &nbsp;</div>
                </div>
            </div>
            
        </ContentTemplate>
       <%-- <Triggers>
            <asp:AsyncPostBackTrigger ControlID="grv" />
        </Triggers>--%>
    </asp:UpdatePanel>
    
  
     
    <div>
        &nbsp;</div>
    <br />
</asp:Content>
